package com.j283_5.wisdom_park.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.j283_5.wisdom_park.pojo.Person;
import com.j283_5.wisdom_park.vo.tenant_management.PereeVo;
import com.j283_5.wisdom_park.vo.tenant_management.PersonVo;
import com.j283_5.wisdom_park.vo.tenant_management.Person_PereeVo;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 冯弋舟
 * @since 2022-05-07
 */
@Mapper
public interface PersonMapper extends BaseMapper<Person> {

    /**
     * 多条件查询人员
     * @return
     */
    List<PersonVo> findPerson(
            @Param("personVo")PersonVo personVo,
            @Param("start")Integer start,
            @Param("limit")Integer limit
    );

    /**
     * 条数
     * @param personVo
     * @return
     */
    Long findPersonCount(
            @Param("personVo")PersonVo personVo
    );

    /**
     * 查询人员详情
     * @param personId
     * @return
     */
    List<Person> findPersonInfo(
            @Param("personId")Integer personId
            );

    /**
     * 查询人员所属信息
     * @param personId
     * @return
     */
    List<Person_PereeVo> findPerson_PereeVo(
            @Param("personId")Integer personId
            );
}
